import { ItemConfig, ItemRarity, EquipmentType } from '../types/game';

// 武器配置 - 现代军事风格
export const WEAPONS: Record<string, ItemConfig> = {
  // 手枪
  basic_pistol: {
    id: 'basic_pistol',
    name: '基础手枪',
    description: '标准的9mm手枪，可靠性高',
    type: 'equipment',
    rarity: ItemRarity.COMMON,
    baseValue: 150,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 1,
    equipmentType: EquipmentType.SECONDARY_WEAPON,
    equipmentStats: {
      attack: 25,
      accuracy: 15,
      range: 50,
      durability: 200
    }
  },

  // 突击步枪
  assault_rifle: {
    id: 'assault_rifle',
    name: '突击步枪',
    description: '全自动突击步枪，火力强劲',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 800,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 5,
    equipmentType: EquipmentType.PRIMARY_WEAPON,
    equipmentStats: {
      attack: 45,
      accuracy: 20,
      range: 300,
      durability: 300
    }
  },

  // 狙击步枪
  sniper_rifle: {
    id: 'sniper_rifle',
    name: '狙击步枪',
    description: '高精度狙击步枪，一击致命',
    type: 'equipment',
    rarity: ItemRarity.RARE,
    baseValue: 1500,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 15,
    equipmentType: EquipmentType.PRIMARY_WEAPON,
    equipmentStats: {
      attack: 80,
      accuracy: 40,
      range: 800,
      durability: 250
    }
  },

  // 战术刀
  tactical_knife: {
    id: 'tactical_knife',
    name: '战术刀',
    description: '多功能战术刀，近战必备',
    type: 'equipment',
    rarity: ItemRarity.COMMON,
    baseValue: 80,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 1,
    equipmentType: EquipmentType.KNIFE,
    equipmentStats: {
      attack: 20,
      accuracy: 10,
      durability: 150
    }
  },

  // 格洛克手枪
  advanced_pistol: {
    id: 'advanced_pistol',
    name: '高级手枪',
    description: '改装过的高性能手枪',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 400,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 8,
    equipmentType: EquipmentType.SECONDARY_WEAPON,
    equipmentStats: {
      attack: 35,
      accuracy: 25,
      range: 70,
      durability: 280
    }
  },

  // 反器材步枪
  anti_material_rifle: {
    id: 'anti_material_rifle',
    name: '反器材步枪',
    description: '专门对付装甲目标的大口径步枪',
    type: 'equipment',
    rarity: ItemRarity.EPIC,
    baseValue: 3000,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 25,
    equipmentType: EquipmentType.PRIMARY_WEAPON,
    equipmentStats: {
      attack: 120,
      accuracy: 30,
      range: 1200,
      durability: 200
    }
  }
};

// 防具配置 - 现代军事风格
export const ARMORS: Record<string, ItemConfig> = {
  // 轻型防弹衣
  basic_vest: {
    id: 'basic_vest',
    name: '基础防弹衣',
    description: '标准的Kevlar防弹衣，提供基础防护',
    type: 'equipment',
    rarity: ItemRarity.COMMON,
    baseValue: 200,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 1,
    equipmentType: EquipmentType.BODY,
    equipmentStats: {
      defense: 25,
      durability: 150
    }
  },

  // 战术背心
  tactical_vest: {
    id: 'tactical_vest',
    name: '战术背心',
    description: '多功能战术背心，带有弹药袋和装备挂点',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 500,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 5,
    equipmentType: EquipmentType.BODY,
    equipmentStats: {
      defense: 40,
      capacity: 3,
      durability: 200
    }
  },

  // 重型防弹衣
  heavy_armor: {
    id: 'heavy_armor',
    name: '重型防弹衣',
    description: '军用重型防弹衣，可抵挡步枪子弹',
    type: 'equipment',
    rarity: ItemRarity.RARE,
    baseValue: 1200,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 15,
    equipmentType: EquipmentType.BODY,
    equipmentStats: {
      defense: 70,
      speed: -10,
      durability: 400
    }
  },

  // 全身装甲
  full_body_armor: {
    id: 'full_body_armor',
    name: '全身装甲',
    description: '包覆全身的复合装甲，防护力极强',
    type: 'equipment',
    rarity: ItemRarity.EPIC,
    baseValue: 2500,
    sellable: true,
    stackable: false,
    maxStack: 1,
    level: 25,
    equipmentType: EquipmentType.BODY,
    equipmentStats: {
      defense: 100,
      speed: -15,
      durability: 600
    }
  },

  // 动力装甲
  power_armor: {
    id: 'power_armor',
    name: '动力装甲',
    description: '未来科技动力装甲，集防护与机动性于一体',
    type: 'equipment',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 5000,
    sellable: false,
    stackable: false,
    maxStack: 1,
    level: 35,
    equipmentType: EquipmentType.BODY,
    equipmentStats: {
      defense: 150,
      speed: 20,
      attack: 25,
      durability: 999
    }
  }
};

// 消耗品配置
export const CONSUMABLES: Record<string, ItemConfig> = {
  // 普通消耗品 (绿色)
  small_potion: {
    id: 'small_potion',
    name: '小型生命药水',
    description: '恢复少量生命值的红色药剂',
    type: 'consumable',
    rarity: ItemRarity.COMMON,
    baseValue: 5,
    sellable: true,
    stackable: true,
    maxStack: 99,
    effects: [
      { type: 'heal', value: 30, description: '恢复30点生命值' }
    ]
  },

  bread: {
    id: 'bread',
    name: '面包',
    description: '新鲜出炉的面包，能够充饥',
    type: 'consumable',
    rarity: ItemRarity.COMMON,
    baseValue: 2,
    sellable: true,
    stackable: true,
    maxStack: 50,
    effects: [
      { type: 'heal', value: 15, description: '恢复15点生命值' },
      { type: 'buff', value: 5, duration: 300000, description: '5分钟内体力恢复速度+50%' }
    ]
  },

  // 优秀消耗品 (蓝色)
  health_potion: {
    id: 'health_potion',
    name: '生命药水',
    description: '标准的生命药水，恢复中等生命值',
    type: 'consumable',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 25,
    sellable: true,
    stackable: true,
    maxStack: 50,
    effects: [
      { type: 'heal', value: 80, description: '恢复80点生命值' }
    ]
  },

  strength_potion: {
    id: 'strength_potion',
    name: '力量药水',
    description: '饮用后暂时增强力量的魔法药剂',
    type: 'consumable',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 40,
    sellable: true,
    stackable: true,
    maxStack: 20,
    effects: [
      { type: 'buff', value: 15, duration: 600000, description: '10分钟内攻击力+15' }
    ]
  },

  // 稀有消耗品 (紫色)
  greater_health_potion: {
    id: 'greater_health_potion',
    name: '强效生命药水',
    description: '高级炼金师制作的强效生命药水',
    type: 'consumable',
    rarity: ItemRarity.RARE,
    baseValue: 100,
    sellable: true,
    stackable: true,
    maxStack: 20,
    effects: [
      { type: 'heal', value: 200, description: '恢复200点生命值' },
      { type: 'buff', value: 10, duration: 300000, description: '5分钟内生命恢复速度+100%' }
    ]
  },

  // 史诗消耗品 (金色)
  elixir_of_life: {
    id: 'elixir_of_life',
    name: '生命灵药',
    description: '传说中的生命灵药，具有起死回生的神奇功效',
    type: 'consumable',
    rarity: ItemRarity.EPIC,
    baseValue: 500,
    sellable: true,
    stackable: true,
    maxStack: 5,
    effects: [
      { type: 'heal', value: 999, description: '完全恢复生命值' },
      { type: 'buff', value: 50, duration: 1800000, description: '30分钟内全属性+50' },
      { type: 'special', value: 1, description: '移除所有负面状态' }
    ]
  }
};

// 钥匙配置 - 单独分类
export const KEYS: Record<string, ItemConfig> = {
  // 普通钥匙
  rusty_key: {
    id: 'rusty_key',
    name: '生锈钥匙',
    description: '一把生锈的旧钥匙，可能打开某些旧锁',
    type: 'key',
    rarity: ItemRarity.COMMON,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 10
  },

  office_key: {
    id: 'office_key',
    name: '办公室钥匙',
    description: '标准的办公室钥匙，能打开大部分办公区域',
    type: 'key',
    rarity: ItemRarity.COMMON,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 5
  },

  apartment_key: {
    id: 'apartment_key',
    name: '公寓钥匙',
    description: '住宅公寓的钥匙，能打开某些居住区域',
    type: 'key',
    rarity: ItemRarity.COMMON,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 8
  },

  // 稀有钥匙
  security_keycard: {
    id: 'security_keycard',
    name: '安全门禁卡',
    description: '高级门禁卡，能够打开受保护的区域',
    type: 'key',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 3
  },

  golden_key: {
    id: 'golden_key',
    name: '黄金钥匙',
    description: '闪闪发光的黄金钥匙，必定能打开重要的门扉',
    type: 'key',
    rarity: ItemRarity.RARE,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 2
  },

  vault_key: {
    id: 'vault_key',
    name: '保险库钥匙',
    description: '银行保险库的特制钥匙，价值连城',
    type: 'key',
    rarity: ItemRarity.EPIC,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  // 传说钥匙
  master_key: {
    id: 'master_key',
    name: '万能钥匙',
    description: '传说中的万能钥匙，据说能打开任何锁',
    type: 'key',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  }
};

// 特殊物品配置 - 任务道具和剧情物品
export const SPECIAL_ITEMS: Record<string, ItemConfig> = {
  // === 任务道具类 ===
  evacuation_beacon: {
    id: 'evacuation_beacon',
    name: '撤离信标',
    description: '紧急撤离信标装置，激活后可召唤救援',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1,
    effects: [
      { type: 'special', value: 1, description: '可在任意位置触发撤离' }
    ]
  },

  damaged_laptop: {
    id: 'damaged_laptop',
    name: '损坏的笔记本',
    description: '一台严重损坏的军用笔记本电脑，可能包含重要数据',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  survivor_journal: {
    id: 'survivor_journal',
    name: '幸存者日记',
    description: '另一名幸存者留下的日记，记录了重要的生存信息',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  // === 剧情道具类 ===
  mysterious_crystal: {
    id: 'mysterious_crystal',
    name: '神秘水晶',
    description: '发出微弱光芒的神秘水晶，似乎蕴含着某种力量',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1,
    effects: [
      { type: 'special', value: 1, description: '未知的神秘力量' }
    ]
  },

  government_badge: {
    id: 'government_badge',
    name: '政府证件',
    description: '高级政府官员的身份证件，可能有特殊用途',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  military_dog_tag: {
    id: 'military_dog_tag',
    name: '军用身份牌',
    description: '军人的身份识别牌，上面刻着姓名和编号',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 5
  },

  // === 增益道具类 ===
  lucky_charm: {
    id: 'lucky_charm',
    name: '幸运符',
    description: '据说能带来好运的护身符，增加找到稀有物品的几率',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1,
    effects: [
      { type: 'buff', value: 10, duration: 1800000, description: '30分钟内提高物品掉落品质' }
    ]
  },

  tactical_map: {
    id: 'tactical_map',
    name: '战术地图',
    description: '详细的区域战术地图，标记了重要位置和资源点',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1,
    effects: [
      { type: 'special', value: 1, description: '显示隐藏房间和秘密通道' }
    ]
  },

  emergency_ration: {
    id: 'emergency_ration',
    name: '军用口粮',
    description: '军用紧急口粮，营养丰富且保存时间长',
    type: 'consumable',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 50,
    sellable: true,
    stackable: true,
    maxStack: 10,
    effects: [
      { type: 'heal', value: 100, description: '恢复100点生命值' },
      { type: 'buff', value: 20, duration: 900000, description: '15分钟内体力恢复速度+100%' }
    ]
  },

  // === 稀有收藏品 ===
  golden_coin: {
    id: 'golden_coin',
    name: '金币',
    description: '纯金铸造的金币，具有很高的收藏价值',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 200,
    sellable: true,
    stackable: true,
    maxStack: 20
  },

  diamond_ring: {
    id: 'diamond_ring',
    name: '钻石戒指',
    description: '镶嵌着巨大钻石的豪华戒指，价值连城',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 3000,
    sellable: true,
    stackable: false,
    maxStack: 1
  },

  // === 传说物品 ===
  time_capsule: {
    id: 'time_capsule',
    name: '时间胶囊',
    description: '装有珍贵历史文物的时间胶囊，见证了过去的辉煌',
    type: 'misc',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1,
    effects: [
      { type: 'special', value: 1, description: '解锁特殊剧情内容' }
    ]
  },

  philosophers_stone: {
    id: 'philosophers_stone',
    name: '贤者之石',
    description: '传说中的炼金至宝，具有化腐朽为神奇的力量',
    type: 'misc',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1,
    effects: [
      { type: 'special', value: 1, description: '可以强化任何装备到最高品质' }
    ]
  }
};

// 收藏品配置 - 按类型分类
export const COLLECTIBLES: Record<string, ItemConfig> = {
  // === 工艺藏品类 ===
  // 普通工艺品
  ceramic_vase: {
    id: 'ceramic_vase',
    name: '陶瓷花瓶',
    description: '精美的手工陶瓷花瓶，具有一定收藏价值',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 25,
    sellable: true,
    stackable: true,
    maxStack: 10
  },
  
  wooden_sculpture: {
    id: 'wooden_sculpture',
    name: '木制雕像',
    description: '手工雕刻的木制小雕像，工艺精细',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 35,
    sellable: true,
    stackable: true,
    maxStack: 5
  },

  // 稀有工艺品
  antique_clock: {
    id: 'antique_clock',
    name: '古董钟表',
    description: '精美的机械钟表，虽然已经停摆但仍然价值不菲',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 450,
    sellable: true,
    stackable: false,
    maxStack: 1
  },

  gold_jewelry: {
    id: 'gold_jewelry',
    name: '黄金首饰',
    description: '纯金打造的精美首饰，闪闪发光',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 1200,
    sellable: true,
    stackable: true,
    maxStack: 3
  },

  // === 工具材料类 ===
  scrap_metal: {
    id: 'scrap_metal',
    name: '废料金属',
    description: '各种金属废料，可以回收利用',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 5,
    sellable: true,
    stackable: true,
    maxStack: 50
  },

  steel_plate: {
    id: 'steel_plate',
    name: '钢板',
    description: '厚重的钢制板材，工业建设的基础材料',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 40,
    sellable: true,
    stackable: true,
    maxStack: 20
  },

  titanium_alloy: {
    id: 'titanium_alloy',
    name: '钛合金',
    description: '高强度钛合金材料，航空工业的珍贵材料',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 200,
    sellable: true,
    stackable: true,
    maxStack: 10
  },

  rare_earth_metal: {
    id: 'rare_earth_metal',
    name: '稀土金属',
    description: '极其珍贵的稀土金属，现代科技的核心材料',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 800,
    sellable: true,
    stackable: true,
    maxStack: 5
  },

  // === 电子物品类 ===
  old_smartphone: {
    id: 'old_smartphone',
    name: '旧智能手机',
    description: '已损坏的智能手机，或许还能提取一些有用信息',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 15,
    sellable: true,
    stackable: true,
    maxStack: 10
  },

  circuit_board: {
    id: 'circuit_board',
    name: '电路板',
    description: '复杂的电子电路板，包含各种芯片和元件',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 80,
    sellable: true,
    stackable: true,
    maxStack: 15
  },

  military_radio: {
    id: 'military_radio',
    name: '军用无线电',
    description: '加密的军用通讯设备，可能包含重要信息',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 350,
    sellable: true,
    stackable: false,
    maxStack: 1
  },

  quantum_processor: {
    id: 'quantum_processor',
    name: '量子处理器',
    description: '先进的量子计算处理器，科技的巅峰产物',
    type: 'misc',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 5000,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  // === 家居物品类 ===
  family_photo: {
    id: 'family_photo',
    name: '全家福',
    description: '一张温馨的全家福照片，见证着逝去的美好时光',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 20
  },

  vintage_wine: {
    id: 'vintage_wine',
    name: '陈年美酒',
    description: '保存完好的陈年葡萄酒，酒香醇厚',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 120,
    sellable: true,
    stackable: true,
    maxStack: 6
  },

  luxury_watch: {
    id: 'luxury_watch',
    name: '奢侈手表',
    description: '名牌奢侈手表，精工制作的时间艺术品',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 2000,
    sellable: true,
    stackable: false,
    maxStack: 1
  },

  // === 能源燃料类 ===
  gasoline_can: {
    id: 'gasoline_can',
    name: '汽油桶',
    description: '装满汽油的金属桶，易燃易爆请小心',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 30,
    sellable: true,
    stackable: true,
    maxStack: 8
  },

  battery_pack: {
    id: 'battery_pack',
    name: '电池组',
    description: '高容量锂电池组，可为各种设备供电',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 60,
    sellable: true,
    stackable: true,
    maxStack: 12
  },

  fusion_cell: {
    id: 'fusion_cell',
    name: '聚变电池',
    description: '小型聚变反应堆电池，蕴含巨大能量',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 500,
    sellable: true,
    stackable: true,
    maxStack: 5
  },

  antimatter_core: {
    id: 'antimatter_core',
    name: '反物质核心',
    description: '理论上的终极能源，一小块就能供应整个城市',
    type: 'misc',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 10000,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  // === 医疗道具类 ===
  bandage: {
    id: 'bandage',
    name: '绷带',
    description: '无菌绷带，可用于包扎伤口',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 8,
    sellable: true,
    stackable: true,
    maxStack: 30
  },

  medical_syringe: {
    id: 'medical_syringe',
    name: '医用注射器',
    description: '一次性医用注射器，用于药物注射',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 12,
    sellable: true,
    stackable: true,
    maxStack: 20
  },

  surgical_kit: {
    id: 'surgical_kit',
    name: '外科手术包',
    description: '完整的外科手术器械包，包含各种精密工具',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 300,
    sellable: true,
    stackable: false,
    maxStack: 1
  },

  experimental_serum: {
    id: 'experimental_serum',
    name: '实验血清',
    description: '神秘的实验血清，效果未知但价值巨大',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 1500,
    sellable: false,
    stackable: true,
    maxStack: 3
  },

  // === 资料情报类 ===
  old_newspaper: {
    id: 'old_newspaper',
    name: '旧报纸',
    description: '战前的报纸，记录着过去的新闻',
    type: 'misc',
    rarity: ItemRarity.COMMON,
    baseValue: 2,
    sellable: false,
    stackable: true,
    maxStack: 50
  },

  research_notes: {
    id: 'research_notes',
    name: '研究笔记',
    description: '科学家的研究笔记，包含重要的技术资料',
    type: 'misc',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 100,
    sellable: true,
    stackable: true,
    maxStack: 10
  },

  classified_document: {
    id: 'classified_document',
    name: '机密文件',
    description: '政府机密文件，包含敏感信息',
    type: 'misc',
    rarity: ItemRarity.RARE,
    baseValue: 0,
    sellable: false,
    stackable: true,
    maxStack: 5
  },

  encrypted_hard_drive: {
    id: 'encrypted_hard_drive',
    name: '加密硬盘',
    description: '军用级加密硬盘，内容价值无法估量',
    type: 'misc',
    rarity: ItemRarity.EPIC,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  },

  alien_artifact: {
    id: 'alien_artifact',
    name: '外星文物',
    description: '疑似外星文明的神秘物品，蕴含未知的秘密',
    type: 'misc',
    rarity: ItemRarity.LEGENDARY,
    baseValue: 0,
    sellable: false,
    stackable: false,
    maxStack: 1
  }
};

// 装备配置 - 现代军事风格
export const EQUIPMENT: Record<string, ItemConfig> = {
  // 头部装备
  basic_helmet: {
    id: 'basic_helmet',
    name: '基础头盔',
    description: '标准的战术头盔，提供基本的头部保护',
    type: 'equipment',
    rarity: ItemRarity.COMMON,
    baseValue: 150,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.HEAD,
    equipmentStats: {
      defense: 15,
      durability: 120
    }
  },

  tactical_helmet: {
    id: 'tactical_helmet',
    name: '战术头盔',
    description: '专业的战术头盔，内置通讯设备',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 300,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.HEAD,
    equipmentStats: {
      defense: 25,
      accuracy: 5,
      durability: 180
    }
  },

  night_vision_helmet: {
    id: 'night_vision_helmet',
    name: '夜视头盔',
    description: '配备夜视仪的高级头盔，提供夜战优势',
    type: 'equipment',
    rarity: ItemRarity.RARE,
    baseValue: 800,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.HEAD,
    equipmentStats: {
      defense: 30,
      accuracy: 20,
      durability: 250
    }
  },

  combat_helmet: {
    id: 'combat_helmet',
    name: '作战头盔',
    description: '军用级作战头盔，具备防弹能力',
    type: 'equipment',
    rarity: ItemRarity.EPIC,
    baseValue: 1500,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.HEAD,
    equipmentStats: {
      defense: 45,
      accuracy: 10,
      durability: 400
    }
  },

  // 背包装备 - 现代风格
  tactical_backpack: {
    id: 'tactical_backpack',
    name: '战术背包',
    description: '军用战术背包，容量大且结实耐用',
    type: 'equipment',
    rarity: ItemRarity.COMMON,
    baseValue: 200,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.BACKPACK,
    equipmentStats: {
      capacity: 8,
      durability: 150
    }
  },

  assault_pack: {
    id: 'assault_pack',
    name: '突击背包',
    description: '专业突击背包，轻量化设计',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 400,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.BACKPACK,
    equipmentStats: {
      capacity: 12,
      speed: 5,
      durability: 200
    }
  },

  expedition_pack: {
    id: 'expedition_pack',
    name: '远征背包',
    description: '大容量远征背包，适合长期作战',
    type: 'equipment',
    rarity: ItemRarity.RARE,
    baseValue: 800,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.BACKPACK,
    equipmentStats: {
      capacity: 20,
      durability: 300
    }
  },

  // 弹药袋装备
  ammo_belt: {
    id: 'ammo_belt',
    name: '弹药带',
    description: '标准弹药携行带，方便快速装填',
    type: 'equipment',
    rarity: ItemRarity.COMMON,
    baseValue: 100,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.AMMO_POUCH,
    equipmentStats: {
      capacity: 4,
      durability: 100
    }
  },

  tactical_vest_pouches: {
    id: 'tactical_vest_pouches',
    name: '战术背心弹袋',
    description: '模块化战术背心弹药袋组合',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 250,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.AMMO_POUCH,
    equipmentStats: {
      capacity: 6,
      durability: 150
    }
  },

  utility_belt: {
    id: 'utility_belt',
    name: '多功能腰带',
    description: '多功能战术腰带，可携带各种工具',
    type: 'equipment',
    rarity: ItemRarity.UNCOMMON,
    baseValue: 180,
    sellable: true,
    stackable: false,
    maxStack: 1,
    equipmentType: EquipmentType.AMMO_POUCH,
    equipmentStats: {
      capacity: 5,
      durability: 180
    }
  }
};

// 所有物品配置的总集合
export const ALL_ITEMS: Record<string, ItemConfig> = {
  ...WEAPONS,
  ...ARMORS,
  ...CONSUMABLES,
  ...KEYS,
  ...SPECIAL_ITEMS,
  ...COLLECTIBLES,
  ...EQUIPMENT
};
